//
//  applyModel.m
//  FastDoctor
//
//  Created by 云卷云舒丶 on 16/7/6.
//  Copyright © 2016年 sc. All rights reserved.
//

#import "applyModel.h"
#import <AFNetworking.h>
@implementation applyModel

- (instancetype)initWithDict:(NSDictionary *)dict {
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dict];
    }
    return self;
}

+ (instancetype)applyModelWithDict:(NSDictionary *)dict {
    return [[self alloc] initWithDict:dict];
}
//+(void)listFamousDoctorsWihUrlstr:(NSString*)urlStr andParameters:(NSDictionary*)par successBlock:(void(^)(NSArray<applyModel*>*listDoctors))successBlock errorBlock:(void(^)())errorBlock{
//    [[NetWorkTool sharedWorkTool]POST:urlStr parameters:par success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
//        NSMutableArray *marray = [NSMutableArray array];
//        [responseObject enumerateObjectsUsingBlock:^(id  _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
//            
//            
//            applyModel*model = [applyModel applyModelWithDict:obj];
//            [marray addObject:model];
//            
//            
//            
//            
//        }];
//        successBlock(marray.copy);
//    } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
//        
//        NSLog(@"%@",error);
//        if (errorBlock) {
//            
//            errorBlock();
//            
//        }
//    }];
//}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key{}
@end
